package com.jing.yao.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 用户工具类
 *
 * @author lr
 * @since 2020-07-14
 */
public class UserInfoUtils {

    /**
     * 获取密码
     *
     * @param password
     * @return
     */
    public static String getPassword(String password) {
        BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();
        return bCryptPasswordEncoder.encode(password);
    }

    public static void main(String[] args) {
        System.out.println(getPassword("123456"));
    }
}
